<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>详情</title>
</head>
<body>
详情界面
    <div th:text="${#httpServletRequest.getRemoteAddr()}"></div>
    <div th:text="${#httpServletRequest.getAttribute('name')}"></div>

<div th:if="${user}" th:object="${user}">
    <div th:text="*{username}"></div>
</div>
<div th:unless="${user}">
    没有用户数据
</div>
</body>
</html>